<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />  
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <title>Alcoholics Anonymous</title>
  <script language="javascript" type="text/javascript" src="javascript/site.js"></script>
  <script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=<? echo googleMapKey(); ?>" type="text/javascript"></script>
  <script type="text/javascript">

  var map = null;
  var geocoder = null;

  function initialize() {
    if (GBrowserIsCompatible()) {
      map = new GMap2(document.getElementById("map_canvas"));
      //map.setCenter(new GLatLng(37.4419, -122.1419), 13);
      geocoder = new GClientGeocoder();
    }
  }

  function showAddress(address,meeting) {
    if (geocoder) {
      geocoder.getLatLng(
        address,
        function(point) {
          if (!point) {
            alert(address + " not found");
          } else {
            map.setCenter(point, 13);
            var marker = new GMarker(point);
            map.addOverlay(marker);
	    map.addControl(new GSmallMapControl());

	    var info = meeting + "<br>" + address.replace(/,/,"<br>");
            marker.openInfoWindowHtml(info);
          }
        }
      );
    }
  }
  </script>
</head>

<body onload="initialize(); showAddress('<? echo $location; ?>','<b><? echo $meeting; ?>></body></b>'); return false" onunload="GUnload()">

<div class="content">
  <div class="header_right">
    <div class="top_info">
    <div class="top_info_right">
  </div>		
</div>
					
<div class="bar">
  <ul>
  <li><a href="index.php" accesskey="b">Home</a></li>
  <li><a href="calendar.php" accesskey="a">Calendar</a></li>
  <li><a href="store.php" accesskey="a">Store</a></li>
  <li><a href="meetings.php" accesskey="p">Meetings</a></li>
  <li><a href="contact.php" accesskey="g">Contact Us</a></li>
  </ul>
</div>

</div>
  <div class="logo">
  <h1><a href="#" title="Alcoholics Anonymous">Alcoholics <span class="blue">Anonymous</span></a></h1>
  <center><h3>Central Office of Atlanta, Georgia</h3></center>
  </div>
		
  <div>
  <div class="search_field">
  <form method="post" action="meetings.php">
  <p><span class="grey">Find a Meeting:</span> <span class="search"></span>&nbsp;&nbsp; 
  <input type="text" name="terms" id="terms" class="search" value="CITY, ZIP" onClick="clearSimpleSearch();" onBlur="fillSimpleSearch();"/>
  <input type="submit" name="simple" value="Search" class="button" /></p>
  </form>
  </div>
		
  <div class="newsletter">
  <p>&nbsp;</p>
  </div>
  </div>
		
  <div class="subheader">
  </div>
